host = window.location.host;
if (host=="sc.sh-shiguang.com"){
	document.writeln("<style type=\"text/css\">");
	document.writeln("nav.bar-tab{display:none;}");
	document.writeln(".con1-nav{display:none;}");
	document.writeln(".bar-tab ~ .content{bottom:0;}");
	document.writeln(".hotline{display:none;}");
	document.writeln(".big-hotline{display:none;}");
	document.writeln(".zx-tel-btn{display:none;}");
	document.writeln(".pphd{display:none;}");
	document.writeln(".content-sg-nopa{display:none;}");
	document.writeln(".show-list{display:none;}");
	document.writeln("</style>");
}else if (host=="m.sh-shuguang.com"){
	document.writeln("<style type=\"text/css\">");
	document.writeln(".content-sg-nopa{display:none;}");
	document.writeln(".show-list{display:none;}");
	document.writeln("</style>");
}else{
// 商务通修改版1.0

//加载商务通官方代码
//加载商务通记录轨迹js
//var swt="http://sh-shuguang.zoossoft.net/JS/LsJS.aspx?siteid=LHC19934945&float=1";
//var swt_backup="http://pbt.zoosnet.net/JS/LsJS.aspx?siteid=PBT77683380&float=1&lng=cn";
//
//if (bkswt=="N" || typeof(bkswt)=="undefined")
//{
//	var swturl=swt;
//}else{
//	var swturl=swt_backup;
//}

// document.write('<script src="http://sh-shuguang.zoossoft.net/JS/LsJS.aspx?siteid=LHC19934945&float=1&lng=cn"></script>');
document.writeln("<script type=\"text/javascript\" src=\"http://net.zoosnet.net/JS/LsJS.aspx?siteid=NET15715119&float=1\" charset=\"utf-8\"><\/script>");
//document.write('<script src="http://pbt.zoosnet.net/JS/LsJS.aspx?siteid=PBT77683380&float=1&lng=cn"></script>');
function LR_submit1(chat)
	{
	    LR_explain='来自网页内嵌文本框的对话,客人输入的内容如下:'+LR_GetObj('LR_text1').value;
		LR_msg=LR_GetObj('LR_text1').value;
	    openZoosUrl(chat?'chat':'sendnote');
	}


document.write('<style type="text/css">#LRdiv0,#LRfloater0,.xlpdyrykvmaprxpzjbuy{display:none;}</style>');

var firstshow=10000; //首次弹窗时间
var nextshow=20*1000;/*3秒*/ //设置下次弹窗时间 

//兼容IE进行居中显示
function showid(idname){
	var isIE = (document.all) ? true : false;
	var isIE6 = isIE && ([/MSIE (\d)\.0/i.exec(navigator.userAgent)][0][1] == 6);
	var newbox=document.getElementById(idname);
	newbox.style.zIndex="9999";
	newbox.style.display="block"
	newbox.style.position = !isIE6 ? "fixed" : "absolute";
	newbox.style.top =newbox.style.left = "50%";
	newbox.style.marginTop = - newbox.offsetHeight / 2 + "px";
	newbox.style.marginLeft = - newbox.offsetWidth / 2 + "px";  
	function newbox_iestyle(){      
		newbox.style.marginTop = document.documentElement.scrollTop - newbox.offsetHeight / 2 + "px";
		newbox.style.marginLeft = document.documentElement.scrollLeft - newbox.offsetWidth / 2 + "px";
		}
	if(isIE6){  
		newbox_iestyle();
		window.attachEvent("onscroll",function(){                              
		newbox_iestyle();
		})
	}
}

//兼容IE进行元素隐藏
function clsid(idname){
	var isIE = (document.all) ? true : false;
	var isIE6 = isIE && ([/MSIE (\d)\.0/i.exec(navigator.userAgent)][0][1] == 6);
	var newbox=document.getElementById(idname);
 	newbox.style.display="none";
	setTimeout("showid('swtbox')",nextshow)
}

if (swtpic=="" || typeof(swtpic)=="undefined")
{
	//var swtpic="/images/swt.jpg";
	var swtpic="/images/swt/swt-wap-2017.jpg";
}

document.writeln("<div id=\"swtbox\" class=\"modal modal-in\" style=\"display: none;\">");
document.writeln("<div class=\"modal-inner\">");
document.writeln("<div class=\"modal-text\">荣美整形医院<a onclick=\"clsid(\'swtbox\')\" href=\"javascript:void(0)\" class=\"external\"><span class=\"icon icon-close\"></span></a></div>");
document.writeln("<a onclick=\"openZoosUrl(\'chatwin\',\'&e=弹窗图片咨询\');return false;\" target=\"_blank\" href=\"javascript:void(0)\"><img src=\"http://static.rmzxyy.cn/wap"+swtpic+"\"></a>");
document.writeln("</div>");
document.writeln("<div class=\"modal-buttons \">");
document.writeln("<a class=\"modal-button external\" onclick=\"openZoosUrl(\'chatwin\',\'&e=弹窗预约专家\');return false;\" target=\"_blank\" href=\"javascript:void(0)\">预约专家</a>");
document.writeln("<a class=\"modal-button external\" onclick=\"openZoosUrl(\'chatwin\',\'&e=弹窗在线咨询\');return false;\" target=\"_blank\" href=\"javascript:void(0)\">在线咨询</a>");
document.writeln("</div>");
document.writeln("</div>");

setTimeout("showid('swtbox')",firstshow);

if (wxtxt=="" || typeof(wxtxt)=="undefined")
{
	//var wxtxt="<dd>我是时光在线客服，方便您私下交流，可以加我哦</dd>";
	var wxtxt="<dd>爆款返场特惠99元起，点击查看！</dd>";
	//var wxtxt="<dd>818秒杀专场，6.8折特惠请咨询</dd>";
}

(function(){ 
	ocLinkReplace();
    var swtHTML = [
        '<div class="content-sg top-swt clearfix">',
        '<div class="searchbar row">',
        '<a class="zxbtn" href="javascript:onphone();">免费电话咨询</a>',
        '<div class="search-input col-40" style="width:44%;">',
        '<input id="LR_text1" name="search" placeholder="请输入咨询的内容" type="text">',
        '</div>',
        '<button class="button button-fill button-primary col-20" onclick="LR_submit1(1);">咨询</button>',
        '</div>',
        '</div>'].join('\r\n');
	$(".banner").after(swtHTML); 
    var sHTML = [
        '<style type="text/css">',
        '.topTips {height:0px;overflow:hidden; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; position: fixed; left:0; top: 0; width: 100%; z-index: 100;-webkit-perspective: 600px; perspective: 600px; z-index:10000;font-size:0.6rem;}',
        '.tipsInner {font-family: "Microsoft YaHei"; border-top-left-radius: 5px; border-top-right-radius: 5px; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; border-radius: 5px; -webkit-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);/* background: #fff;-webkit-transform-origin: 0px 0px; transform-origin: 0px 0px; -webkit-transform: rotateX(90deg); transform: rotateX(90deg);*/ opacity: 1; }',
        '.tipsInner a { height:3rem;text-decoration:none;display: block; position: relative; padding-left: 50px; color: #FFFFFF; filter:alpha(opacity=100); -moz-opacity:1; -khtml-opacity: 1; opacity: 1;background-color:black;}',
        '.tipsInner img { position: absolute; left: 8px; top: 50%; margin-top: -18px; width: 38px; height: auto; margin-right: 5px; border-radius: .3125em;opacity: 1}',
        '.tipsInner dl {height: 40px; margin:0; padding:8px 5px;  text-align:left;}',
        '.tipsInner dt { font-weight: bold;line-height:1.2rem; }',
        '.tipsInner dd { margin:0; line-height: 1.2em;white-space:nowrap;text-overflow:ellipsis;overflow:hidden; }',
        '.showTip { height:3rem; }',
        '.showTip .tipsInner { opacity: 1; }',
        '.hideTip { height:0px; }',
        '.hideTip .tipsInner { opacity: 0; }',
		'</style>',
        '<div class="topTips" id="toptips">',
        '   <div class="tipsInner">',
        '       <a href="javascript:void(0)" onclick="openZoosUrl(\'chatwin\',\'&e=顶部微信\');"  class="JS-SWT-PLACEHOLD">',             
        '         <dl>',
        '           <dt>微信<font style="font-weight:normal;font-size:0.9em;"> 在线</font></dt>',
        '           '+wxtxt+'',
        '         </dl>',
		'         <img src="http://static.rmzxyy.cn/wap/images/swt/wx.png" alt="">',
        '       </a>',
        '   </div>',
        '</div>'].join('\r\n');
    var o = document.createElement('div');
    o.innerHTML = sHTML;	
    while(o.firstElementChild){
        document.body.appendChild(o.firstElementChild);
		
    }; 
	
         T={hasClass:function(d,a){var c=d.className.split(/\s+/);for(var b=0;b<c.length;b++){if(c[b]==a){return true}}return false},addClass:function(b,a){if(!this.hasClass(b,a)){b.className+=" "+a}},removeClass:function(d,a){if(this.hasClass(d,a)){var c=d.className.split(/\s+/);for(var b=0;b<c.length;b++){if(c[b]==a){delete c[b]}}d.className=c.join(" ")}}};

        function Toptips(options){
            this.init(options);
        };

        Toptips.prototype = {

            constructor : Toptips,

            init : function(options){
                this.item = options.item;
                this.itemInner = options.item.children[0];
                this.loop = typeof options.loop == "undefined" ? true : options.loop;
                this.showTime = typeof options.showTime == "undefined" ? 10000 : options.showTime;
                this.hideTime = typeof options.hideTime == "undefined" ? 16000 : options.hideTime;
                this.showTimer = null;
                this.hideTimer = null;
                this.preTimer = null;
                this.item.style.WebkitTransition = this.item.style.transition = this.itemInner.style.WebkitTransition = this.itemInner.style.transition = "0.5s";
                var me = this;
                var initTimer = setTimeout(function(){
                        me.showTip();
                },15000);
            },

            showTip : function(){
                var me = this;
                T.addClass(me.item,"showTip");
                T.removeClass(me.item,"hideTip");

                clearTimeout(me.hideTimer);
                me.showTimer = setTimeout(function(){
                    me.hideTip();
                },me.showTime);
         
            },

            hideTip : function(){
                var me = this;
                T.removeClass(me.item,"showTip");
                T.addClass(me.item,"hideTip");
                me.item.style.height = me.itemInner.style.height = "0";

                if(me.loop){
                    clearTimeout(me.showTimer);

                    me.preTimer = setTimeout(function(){
                        me.item.style.height = me.itemInner.style.height = "3rem";
                    },me.hideTime-100);

                    me.hideTimer = setTimeout(function(){
                        me.showTip();
                    },me.hideTime);

                }
				
            },

        };

        var toptip = document.getElementById("toptips");

        new Toptips({
            item : toptip,
            loop : true
        }); 
        return false;
   delete o;
})();

//document.writeln("<div style=\'width:2.4rem;height:2.4rem;position: fixed; left:.75rem; bottom:3.25rem;z-index:9999;\'>");
//document.writeln("<a onclick=\"openZoosUrl(\'chatwin\',\'&e=左侧漂浮\');return false;\" target=\"_blank\" href=\"javascript:void(0)\"><img src=\'/images/banner/mfzx-wap-left.png\'  style=\'width:100%;position:absolute;left:0;top:0;\'/></a>");
//document.writeln("</div>");

function ocLinkReplace(){
	var links = $("a[href$=\"/swt\"]").add("a[href$=\"/swt/\"]").add("a[href$=\"/call.html\"]");
	links.removeAttr('target');
	links.attr('href','javascript:void(0)');
	links.attr('onclick','openZoosUrl();return false;');
	links.attr('rel','nofollow');
}

function onphone(){window.location.href = 'tel:07938269112';}

document.writeln("<div style=\"display:none;\">");
host = window.location.host;
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "//hm.baidu.com/hm.js?1d0d3256032621e9abba6799e5657f2b";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1262303382'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s22.cnzz.com/z_stat.php%3Fid%3D1262303382%26show%3Dpic1' type='text/javascript'%3E%3C/script%3E"));
document.writeln("</div>");

}